package com.senriot.quickup.service.dto

import com.senriot.cloud.common.AbstractEntityDTO
import com.senriot.quickup.domain.enums.AccountAgencyType
import com.senriot.quickup.domain.enums.AgencyType
import org.jeecgframework.poi.excel.annotation.Excel

data class AgencyDTO(
    /**
     * 代理名称
     */
    override var name: String? = null,

    //代理商级别，省还是市
    var agencyType: AgencyType? = null,

    //代理商类型，直营还是代理
    var accountAgencyType: AccountAgencyType? = null,
    //类型必须是市级代理的时候，才能出现省级代理的id
//        var provinceAgencyId: String? = null,

//    var account: User? = null,

    var accountId: Long? = null,

    var accountName: String? = null,

    var company: String? = null,

    var contact: String? = null,

    var phone: String? = null,

    var provinceId: Int? = null,

    @Excel(name = "省", width = 20.0)
    var provinceName: String? = null,

    var cityId: Int? = null,


    @Excel(name = "市", width = 20.0)
    var cityName: String? = null,

    var districtId: Int? = null,

    @Excel(name = "区/县", width = 20.0)
    var districtName: String? = null,

    @Excel(name = "详细地址", width = 60.0)
    var address: String? = null

) : AbstractEntityDTO<Long>()
